/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package bl;

import da.DAPayment;
import entities.Payment;
import java.util.ArrayList;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author Bich Tran Van
 */
public class BLPayment {
    DAPayment daPayment;
    public BLPayment() {
        daPayment = new DAPayment();
    }
    
    public int UpdatePayment(int paymentid)
    {
        try {
            return daPayment.UpdatePayment(paymentid);
        } catch (Exception ex) {
           return 0;
        }
    }
    
    
    public ArrayList<Payment> getPayment(int loanid) throws Exception {
        return daPayment.getPayment(loanid);
    }
    
    
}
